using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace dotnet_ef_admin.Src.Models;

[Table("dict_type")]
public class DictType {
    [Key] public int Id { get; set; }

    public required string Name { get; set; }

    public required string Code { get; set; }

    public int? Status { get; set; } = 1;

    public string? Remark { get; set; }

    [Column("create_time")] public DateTime? CreateTime { get; set; } = DateTime.Now;

    [Column("update_time")] public DateTime? UpdateTime { get; set; }

    public ICollection<Dict>? Dicts { get; set; }
}